package cn.kgc.service;

import cn.kgc.mapper.QiuzhipositionMapper;
import cn.kgc.pojo.Qiuzhiposition;
import cn.kgc.util.Page;
import com.alibaba.dubbo.config.annotation.Service;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;


/**
* 描述： 服务实现层接口
* @author 
* @date 2018/03/05
*/
@Service
public class QiuzhipositionServiceImpl implements QiuzhipositionService{
	@Resource
	private QiuzhipositionMapper qiuzhipositionMapper;
 	
 	/**
    * 描述：根据Id获取Qiuzhiposition对象
    * @param id
    */
    public Qiuzhiposition findById(Serializable id){
    	return qiuzhipositionMapper.findById(id);
    }
    /**
    * 描述：获取所有的Qiuzhiposition对象
    */
    public List<Qiuzhiposition> findAll(){
    	return qiuzhipositionMapper.findAll();
    }

	/**
    * 描述：新增保存Qiuzhiposition对象
    */
    public int save(Qiuzhiposition qiuzhiposition){
    	return  qiuzhipositionMapper.save(qiuzhiposition);
    }

	/**
    * 描述：根据Id删除Qiuzhiposition对象
    * @param id
    */
    public int delete(Serializable id){
    	return  qiuzhipositionMapper.delete(id);
    }
	
	/**
    * 描述：更新Qiuzhiposition对象
    */
    public int update(Qiuzhiposition qiuzhiposition){
    	return  qiuzhipositionMapper.update(qiuzhiposition);
    }
    
    /**
     * 根据不确定的条件，动态查询
     */
    public List<Qiuzhiposition> query(Object params){
    	return  qiuzhipositionMapper.query(params);
    }
    
    /**
     * 根据不确定的条件，动态分页查询
     */
    public Page queryByPage(Object params, Page page){

    	return page;
    	
    }

}
